const joi = require('joi')

// 账号验证
const account = joi.string().alphanum().min(6).max(12).required()
// 密码验证
const password = joi.string().min(6).max(12).required()

// .pattern(/^(?![0-9]+$)[a-z0-9]{1,50}$/)
exports.login_limit = {
	body: {
		account,
		password
	}
}
